package com.sfj.config.application;

import org.springframework.boot.Banner;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;

/**
 * @author kaka
 * @Date 2025/5/1
 */
@SpringBootApplication()
@ComponentScan(value = "com.sfj", excludeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION, value = Controller.class)})
public class BaseApplication {

    public static SpringApplicationBuilder getSpringBootApplication(Class<?> sources) {
        return new SpringApplicationBuilder(sources)
                .bannerMode(Banner.Mode.OFF);
    }
}
